This is the readme file in the replication packet for "Frightened Mandarins: the Adverse Effects of Fighting Corruption on Local Bureaucracy" 

##########################################################################################

Access to proprietary data, the information of every land parcel for sale from January 2012 to May 2018, is required to replicate most of the results. In the R scripts, the data file name is "proprietary.csv", which is not included in this packet. 

Please contact the company "Fang.com" (previously known as "sofun") in order to make a purchase of these data. The contact information is below

Name: Ms. MA lan 
WeChat ID: mtmzma
QQ ID: 891294897
Mobile number: 15210286270

##########################################################################################

Notes:
1. By construction, if you use RStudio, then when you double click on a script to open RStudio, the directory should already be correctly set. Otherwise, please make sure that the directory is set correctly. 

2. After running a script, the outputs will be stored in output/


##########################################################################################

Data files:
- non-p.RData: county-month panel data containing the main treatment variable and control variables, used in most of the scripts

** NOTE that if you simply want to use the INSPECTION data for your own research, please refer to the following three variables: "city_county", "month", "tour".

- mini.RData: data file used in Figure_16_Table_11.R
- city_quarter.RData: data file used in Figure_7_Table_2.R
- city_month.RData: data file used in Figure_7_Table_2.R and Figures_21_22_23.R
- other.RData: data file used in Figures_18_19_20.R
- TG.RData: data file used in Tables_13_14.R

##########################################################################################

Scripts:
All scripts are entitled with names that correspond to the figures and tables in the paper

##########################################################################################


Required software:
R version 3.5.1 (2018-07-02) -- "Feather Spray"
- main packages:
doBy_4.6-3         mediation_4.4.6    sandwich_2.5-0     mvtnorm_1.0-8      Matrix_1.2-14     
MASS_7.3-50        clubSandwich_0.5.3 stargazer_5.2.2    dplyr_1.0.4        data.table_1.12.8 
multiwayvcov_1.2.3 lmtest_0.9-36      zoo_1.8-4          DataCombine_0.2.21 stringdist_0.9.5.1
stringi_1.4.6      foreign_0.8-71     matrixStats_0.54.0 plm_1.6-6          Formula_1.2-3     ggplot2_3.3.0      PanelMatch_2.0.0  

- additional package:
To use Figures_4_5_13_to_15.R, please uninstall PanelMatch_2.0.0 and unzip PanelMatch.zip
to install an older version of the PanelMatch package. 


 